package com.tengju.user.domain.model.archive.sign;

import com.tengju.user.domain.model.sign.License;
import com.tengju.user.domain.model.sign.LicenseType;
import com.tengju.user.domain.model.user.UserIdCode;
import lombok.Value;

@Value
public class SelfCertification {

    SelfCertificationId selfCertificationId;

    SelfCertificationStatus status;

    SelfCertificationType type;

    String remark;

    UserIdCode idCode;

    String companyName;

    String companyAddress;

    String companyTel;

    String companyNo;

    String idCardType;

    String idCardName;

    String idCardNo;

    String idCardImage;

    String bankNo;

    String bankName;

    String businessImg;

    String licenceImg;

    String legalMobile;


    public License companyLicense() {
        return new License(LicenseType.SOCIAL_CREDIT, companyNo);
    }

    public License legalLicense() {
        return new License(LicenseType.IDCARD, idCardNo);
    }
}
